package org.callisto.gui;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

import org.callisto.EventType;
import org.callisto.model.Event;
import org.callisto.model.Keyboard;

class Dotmap extends Widget {
	public static final long serialVersionUID = 6940180689584253555L;
	float needleRootX;
	float needleRootY;
	
	public Dotmap(Keyboard keyboard, EventType eventType, int size) {
		super(keyboard, eventType, size, size);
		initialize();
	}
	
	private void initialize() {
	}

	@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		Graphics2D g2 = (Graphics2D) g;
		g2.setColor(Color.WHITE);
		g2.setStroke(new BasicStroke(2));
		
		Event lastEvent = keyboard.getLastEvent(eventType);
		if (lastEvent != null) {
			
		}
	}		
}
